<%@ page language="java" isErrorPage="true" import="com.probiz.estore.webapp.util.RequestUtil"%>
<%@ include file="/common/taglibs.jsp"%>
<%!private final static transient org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory
			.getLog("accessDenied_jsp");%>
<%
	//TODO, a bug report form, and attach the stack trace in a hidden field with the bug report, and remove these code
	String errorUrl = RequestUtil.getErrorUrl(request);
	//acegi will throw NullPointerException when user click logout but session is already timeout.
	if (errorUrl.indexOf("j_acegi_logout") != -1) {
		response.sendRedirect(request.getContextPath());
	}
	logger.error(RequestUtil.getErrorInfoFromRequest(request, logger.isInfoEnabled()));
%>
<title>
	<i18n:msg expr="errorPage.title" />
</title>
<div class="main">
	<div class="error_notice">
		<div class="e_403">
			<h3><fmt:message key="accessDenied.erroMessage"/></h3>
			<div class="error_info">
				<fmt:message key="accessDenied.noPopedom"/>
				<br/><fmt:message key="accessDenied.erro.reason"/>
			</div>
			<div class="recommend_info">
				<dl>
					<dd><fmt:message key="accessDenied.erro.tip"/><a href="${ctxPath}/"><fmt:message key="accessDenied.comeBacktheHome"/></a>。</dd>
					<dd><fmt:message key="accessDenied.erro.tip1"/><a href="mailto:${appConfig.bugReportEmail}"><fmt:message key="accessDenied.sendEamil"/></a>。</dd>
				</dl>
			</div>
		</div>
	</div>
</div>